package cn.bestick.examsys.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 *  Created by IntelliJ IDEA.
 *  User: Bestick
 *  Date: 2016/4/4
 *  Time: 12:37
 *  Url: http://www.bestick.cn
 *  Copyright © 2015-2016 All rights reserved
 *  -----------------------------------------------------------
 *  会当凌绝顶，一览众山小。
 */

@Entity
@Table(name = "t_manager")
public class Manager {

    private int id;
    private String userName;
    private String password;
    private String name;
    private int flag = 1;

    @Id
    @GeneratedValue(generator = "_native")
    @GenericGenerator(name = "_native", strategy = "native")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Transient
    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }
}
